<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta name="applicable-device" content="mobile">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .app_login {
            border: 1px solid #ccc;
        }
    </style>
</head>
<body>
    <div class="app_login" style="position: fixed;z-index: 1000; bottom: 450px;width: 100%;height: 200px; ">
        <div class="login_box1">
            手机:<input type="number" class="user">
        </div>
        <div class="login_box2">
            密码:<input type="password">
        </div>
        <button>登入</button>

        ------------------------
        发表评论4900028836
        <input type="text" class="common">
        <button class="fscommon">发表评论</button>
    </div>
    <script src="js/jquery.min.js"></script>
    <script>
        var btns=document.querySelectorAll("button");
        var ipts=document.querySelectorAll("input");
        var common=document.querySelector(".common");
        var fscommon=document.querySelector(".fscommon")
        btns[0].onclick=function(){
            var phone=ipts[0].value
            var pass=ipts[1].value;
            $.ajax({
                type:'get',
                url:'/login/cellphone',
                data:{
                    phone:phone,
                    password:pass
                },
                success:function(e){
                    console.log(e);
                }
            })
        }

        fscommon.onclick=function(){
            var value=common.value;
            console.log(value);
            console.log(6892176976);
            $.ajax({
                type:'get',
                url:'/comment',
                data:{
                    t:1,
                    type:2,
                    id:6892176976,
                    content:value
                },
                success:function(e){
                    console.log(e);
                }
            })
        }
    </script>
</body>
</html>